package com.unhz.taigu.service;

import com.unhz.generator.pojo.SysPermission;
import com.unhz.generator.pojo.SysRolePermission;
import com.unhz.generator.utils.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by cxg on 2017/11/13 0013.
 *
 * @Author 曹显贵
 * @Date 2017/11/13 0013 13:48
 */
public interface SysPermissionService {
    List<SysPermission> selectAllPermission();

    Page<SysPermission> selectPagePermission(String pageNo, Integer pageSize, String keywords);

    int deleteByPermissionId(Integer permissionId);

    List<SysPermission> findAllParent();

    String insertPermission(SysPermission sysPermission);

    SysPermission selectByPermissionId(Integer permissionId);

    String updatePermission(SysPermission sysPermission);

    List<SysPermission> findAllChild();

    List<SysPermission> findAllPermission();

    List<SysPermission> findAllBig();

    List<SysPermission> selectPermission();

    List<SysPermission> selectMenus();

    List<SysPermission> selectPermissionByRoleId(Integer roleId);

    List<SysPermission> selectMenusByRoleId(Integer roleId);


}
